package com.tsmti.activiti.entity;

import com.tsmti.core.common.entity.ActBaseDataEntity;
import com.tsmti.core.common.entity.BaseDataEntity;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;

/**
 * @Package：com.tsmti.activiti.entity
 * @Class：ExtendActNodeUser
 * @Description： TODO
 * @Author：zcw
 * @Date：Created in 2018/7/30 14:49
 * @Company:
 * @Version：
 * @Modified By:
 */
@Entity
@Table(name="extend_act_nodeuser")
@DynamicUpdate
@DynamicInsert
public class ExtendActNodeUser extends ActBaseDataEntity<String> {
    private static final long serialVersionUID = 8219633831138717215L;

    private String id;
    /**用户编号*/
    private String userNo;
    /**节点id*/
    private String nodeId;
    /**用户类型 1=用户 2=角色 3=组织*/
    private String userType;
    /**
     * 审批名字
     */
    private String userTitle;

    /**
     * 审批类型名称
     */
    private String typeName;


    @Override
    public void setId(String id) {
        this.id = id;
    }

    @Id
    @Override
    @GeneratedValue(generator = "uuid")
    @GenericGenerator(name = "uuid", strategy = "uuid")
    public String getId() {
        return id;
    }

    public String getUserNo() {
        return userNo;
    }

    public void setUserNo(String userNo) {
        this.userNo = userNo;
    }

    /**
     * 设置：节点id
     */
    public void setNodeId(String nodeId) {
        this.nodeId = nodeId;
    }
    /**
     * 获取：节点id
     */
    public String getNodeId() {
        return nodeId;
    }
    /**
     * 设置：用户类型 1=用户 2=角色 3=组织
     */
    public void setUserType(String userType) {
        this.userType = userType;
    }
    /**【=
     * 获取：用户类型 1=用户 2=角色 3=组织
     */
    public String getUserType() {
        return userType;
    }

    @Transient
    public String getUserTitle() {
        return userTitle;
    }

    public void setUserTitle(String userTitle) {
        this.userTitle = userTitle;
    }

    @Transient
    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }
}
